package com.wisezone.HomeWork.home02;

import java.io.Serializable;
//实现可序列化接口
public class Student implements Serializable {
    private static final long serialVersionUID = 3072651629697063236L;
//    private static final long serialVersionUID =  -6710130667150599653L;


    /**
     * 学号
     */
    private String code;
    /**
     * 姓名
     */
    private String name;
    /**
     * 性别
     */
    private SEX sex;
    /**
     * 成绩
     */
    private float score;

    public Student(String code, String name, SEX sex, float score) {
        this.code = code;
        this.name = name;
        this.sex = sex;
        this.score = score;
    }

    public Student() {

    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public SEX getSex() {
        return sex;
    }

    public void setSex(SEX sex) {
        this.sex = sex;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }


}
